Release 10.1A: OpenEdge Development:
Java Open Clients
Defining the return type for a user-defined function
You must specify the return type for a user-defined function as part of setting up the parameters. You can set this return type using the following method on the
com.progress.open4gl.javaproxy.ParamArrayobject:
proTypeSpecifies a Progress 4GL data type returned by the user-defined function and indicated by a class constant defined in the
com.progress.open4gl.Parameterclass, as shown in Table 11–3.
Note:
Table 11–3: User-defined function return types for the OpenAPI Progress data type com.progress.open4gl.Parameterclass constantLONGCHAR,MEMPTR,TABLE,TABLE-HANDLE,DATASET, andDATASET-HANDLEcannot be return types of a user-defined function.For example, to set the return type for a user-defined function to the 4GL
INTEGERdata type, you can invoke thesetReturnType()method a on aParamArrayobject,parms, as follows:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |